import service from "../utils/request";

// 获取订单列表
export const getOrderListAPI = (params) => {
    return service.get('/api/order/page', { params })
}

// 通过userid查询订单
export const getOrderByUserIdAPI = (userid) => {
    return service.get(`/api/order/userid/${userid}`)
}

// 通过订单号查询订单
export const getOrderByOrderNoAPI = (orderNo) => {
    return service.get(`/api/order/orderNo/{orderNo}`)
}